//
//  THNetRequest.h
//  THBaseApp
//
//  Created by TryHone on 16/6/3.
//  Copyright © 2016年 TryHone. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JFRequestVo.h"
#import "JFResultVo.h"



@interface JFNetRequestHelper : NSObject

@property(nonatomic,assign,class) BOOL isDebug;

//实例方法
-(void)requestWithRequestVo:(JFRequestVo*_Nonnull)requestVo callBack:(nullable JFCallBack)callback;
-(void)cancelAllRequest;
//对象要和请求时的一样
-(void)cancelRequest:(JFRequestVo*_Nonnull)requestVo;

//类方法
+(void)requestWithRequestVo:(JFRequestVo*_Nonnull)requestVo callBack:(nullable JFCallBack)callback;
+(void)cancelAllRequest;
//对象要和请求时的一样
+(void)cancelRequest:(JFRequestVo*_Nonnull)requestVo;


//同步请求
-(JFResultVo*_Nullable)syncRequestWithRequestVo:(JFRequestVo*_Nonnull)requestVo;
//同步请求
+(JFResultVo*_Nullable)syncRequestWithRequestVo:(JFRequestVo*_Nonnull)requestVo;



@end
